/summon villager ~ ~2 ~ {VillagerData:{profession:librarian,level:5,type:plains},Offers:{Recipes:[
{buy:{id:sugar_cane,Count:64}
,sell:{id:music_disc_blocks,Count:1,tag:
{display:{Name:"{\"text\":\"Sugarcane Talisman Level 1\",\"color\":\"green\"}"},AttributeModifiers:
[{AttributeName:"generic.movementSpeed",Name:"generic.movementSpeed",Amount:0.1,Operation:1,UUIDLeast:1,UUIDMost:1,Slot:"offhand"}]},maxUses:9999999}},

{buy:{id:music_disc_blocks,Count:1,tag:
{display:{Name:"{\"text\":\"Sugarcane Talisman Level 1\",\"color\":\"green\"}"},AttributeModifiers:
[{AttributeName:"generic.movementSpeed",Name:"generic.movementSpeed",Amount:0.1,Operation:1,UUIDLeast:1,UUIDMost:1,Slot:"offhand"}]}}
,buyB:{id:sugar_cane,Count:4,tag:
{display:{Name:"{\"text\":\"Sugarcane Upgrade\",\"color\":\"green\"}"}}}
,sell:{id:music_disc_blocks,Count:1,tag:
{display:{Name:"{\"text\":\"Sugarcane Talisman Level 2\",\"color\":\"green\"}"},AttributeModifiers:
[{AttributeName:"generic.movementSpeed",Name:"generic.movementSpeed",Amount:0.2,Operation:1,UUIDLeast:1,UUIDMost:1,Slot:"offhand"}]}},maxUses:9999999},

{buy:{id:music_disc_blocks,Count:1,tag:
{display:{Name:"{\"text\":\"Sugarcane Talisman Level 2\",\"color\":\"green\"}"},AttributeModifiers:
[{AttributeName:"generic.movementSpeed",Name:"generic.movementSpeed",Amount:0.2,Operation:1,UUIDLeast:1,UUIDMost:1,Slot:"offhand"}]}}
,buyB:{id:sugar_cane,Count:8,tag:
{display:{Name:"{\"text\":\"Sugarcane Upgrade\",\"color\":\"green\"}"}}}
,sell:{id:music_disc_blocks,Count:1,tag:
{display:{Name:"{\"text\":\"Sugarcane Talisman Level 3\",\"color\":\"green\"}"},AttributeModifiers:
[{AttributeName:"generic.movementSpeed",Name:"generic.movementSpeed",Amount:0.3,Operation:1,UUIDLeast:1,UUIDMost:1,Slot:"offhand"}]}},maxUses:9999999},

{buy:{id:music_disc_blocks,Count:1,tag:
{display:{Name:"{\"text\":\"Sugarcane Talisman Level 3\",\"color\":\"green\"}"},AttributeModifiers:
[{AttributeName:"generic.movementSpeed",Name:"generic.movementSpeed",Amount:0.3,Operation:1,UUIDLeast:1,UUIDMost:1,Slot:"offhand"}]}}
,buyB:{id:sugar_cane,Count:16,tag:
{display:{Name:"{\"text\":\"Sugarcane Upgrade\",\"color\":\"green\"}"}}}
,sell:{id:music_disc_blocks,Count:1,tag:
{display:{Name:"{\"text\":\"Sugarcane Talisman Level 4\",\"color\":\"green\"}"},AttributeModifiers:
[{AttributeName:"generic.movementSpeed",Name:"generic.movementSpeed",Amount:0.4,Operation:1,UUIDLeast:1,UUIDMost:1,Slot:"offhand"}]}},maxUses:9999999},

{buy:{id:music_disc_blocks,Count:1,tag:
{display:{Name:"{\"text\":\"Sugarcane Talisman Level 4\",\"color\":\"green\"}"},AttributeModifiers:
[{AttributeName:"generic.movementSpeed",Name:"generic.movementSpeed",Amount:0.4,Operation:1,UUIDLeast:1,UUIDMost:1,Slot:"offhand"}]}}
,buyB:{id:sugar_cane,Count:32,tag:
{display:{Name:"{\"text\":\"Sugarcane Upgrade\",\"color\":\"green\"}"}}}
,sell:{id:music_disc_blocks,Count:1,tag:
{display:{Name:"{\"text\":\"Sugarcane Talisman Level 5\",\"color\":\"green\"}"},AttributeModifiers:
[{AttributeName:"generic.movementSpeed",Name:"generic.movementSpeed",Amount:0.6,Operation:1,UUIDLeast:1,UUIDMost:1,Slot:"offhand"}]}},maxUses:9999999}]}}